<!-- 子组件1 -->
<template>
  <!-- <el-button @click="add">点击增加</el-button> -->

  <el-form v-model="form">
    <el-form-item label="用户名称" prop="username">
      <el-input v-model="form.username"></el-input>
    </el-form-item>
    <el-form-item>
      <el-button @click="add" type="primary">query</el-button>
    </el-form-item>
  </el-form>
</template>

<script lang="ts" setup>
import { ref, reactive, defineProps, defineEmits } from "vue";
const emit = defineEmits(["addClick"]);
const form = reactive({
  username: "",
});
const add = () => {
  emit("addClick", form);
};
</script>
<style lang="scss" scoped>

</style>
